package com.hunliji.monitor.web.controller.app;

import com.hunliji.common.response.PageData;
import com.hunliji.common.response.ResponseData;
import com.hunliji.monitor.service.api.model.param.QueryBusinessChangeOrderAffirmParam;
import com.hunliji.monitor.web.model.vo.BusinessChangeAffirmOrderVO;
import org.springframework.web.bind.annotation.*;

/**
 * 业务变更确认单
 * @author wuchen
 */
@RestController
@RequestMapping("/appApi/businessChangeOrderAffirm")
public class BusinessChangeOrderAffirmController {
    /**
     * 分页查询
     * @param queryBusinessChangeOrderAffirmParam
     * @return
     */
    @PostMapping("/queryPage")
    public ResponseData<PageData<BusinessChangeAffirmOrderVO>> queryPage(@RequestBody QueryBusinessChangeOrderAffirmParam queryBusinessChangeOrderAffirmParam){
        return ResponseData.success(null);
    }

    /**
     * 确认
     * @param id 确认单id
     * @return
     */
    @PostMapping("/affirm")
    public ResponseData affirm(@RequestParam("id") Long id){
        return ResponseData.success(null);
    }

    /**
     * 驳回
     * @param id 确认单id
     * @return
     */
    @PostMapping("/reject")
    public ResponseData reject(@RequestParam("id") Long id){
        return ResponseData.success(null);
    }
}
